package com.ruoyi.web.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.web.domain.SysArea;
import com.ruoyi.web.domain.vo.SysAreaVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysAreaMapper extends BaseMapper<SysArea> {

    String queryCodeByName(String name);

    String queryNameByCode(String code);

    List<SysAreaVo> queryAreaByParentCode(String parentCode);

    List<String> selectAreaCodeByAreaName(@Param("areaNameList") List<String> areaNameList);

    String selectCodeByNameAndParentCode(@Param("name") String name, @Param("parentCode") String parentCode);
}
